package com.veetao.api.config;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MapperScannerConfig {
	
	@Bean(name="mapperScanner")
	public MapperScannerConfigurer getMapperScannerConfig() {
		
		MapperScannerConfigurer scannerConf = new MapperScannerConfigurer();
		scannerConf.setBasePackage("com.veetao.api.dao.mapper");
		scannerConf.setBeanName("mapperScanner");
		scannerConf.setProcessPropertyPlaceHolders(true);
		
		return scannerConf;
		
	}
	

	public MapperScannerConfig() {
		super();
	}
	
	

}